﻿using Telerik.Cms.Web.UI;

namespace Telerik.Sitefinity.Social.UI.Frontend
{
    /// <summary>
    /// Represents the control for registration of the new users
    /// </summary>
    public class Registration : SimpleControl
    {
        /// <summary>
        /// Gets or sets the path to a custom layout template for the control.
        /// </summary>
        /// <value></value>
        [WebSysTemplate(Registration.layoutTemplateName, "Registration_Template_Desc", "/Social", true, "2009-04-22")]
        public override string LayoutTemplatePath
        {
            get
            {
                return base.LayoutTemplatePath;
            }
            set
            {
                base.LayoutTemplatePath = value;
            }
        }

        /// <summary>
        /// Gets the name of the embedded layout template. If the control uses layout template
        /// this property must be overridden to provide the path (key) to an embedded resource file.
        /// </summary>
        /// <value></value>
        public override string LayoutTemplateName
        {
            get
            {
                return Registration.layoutTemplateName;
            }
        }

        private const string layoutTemplateName =
            "Telerik.Sitefinity.Social.Resources.ControlTemplates.Frontend.Registration.ascx";
    }
}
